import request from '@/api/request';
//addPayment  代理商充值
function getAddPayment(data) {
  return request({
    //http://192.168.2.117:92/index.php/index
    url: '/agent/addPayment',
    method: 'post',
    data
  })
};

// 获取收款账号
// 192.168.2.117:92//index.php/index/base/get_pay_info
function getPayInfos(data) {
  return request({
    url: '/base/get_pay_info',
    method: 'post',
    data
  })
}

// 文件上传 /index/base/aliUpload

function getUpLoad(data) {
  return request({
    url: '/upload/aliUpload',
    method: 'post',
    data,
    // headers: {
    //   'content-type': 'form-date'
    // }
  })
}

// 代理商升级门槛费

function getLevelUpFee() {
  return request({
    url: '/agent/getLevelUpFee',
    method: 'post'
  })
}

// 获取代理商权益  /agent/getUserLevelGain

function getUserLevelGain() {
  return request({
    url: '/agent/getUserLevelGain',
    method: 'post'
  })
}

// 发送短信验证码 /base/sendSMS

function gwtSendSMS(data) {
  return request({
    url: '/base/sendSMS',
    method: 'post',
    data
  })
}

// 申请成为代理商 /agent/applyAgentLevel
function getApplyAgentLevel(data) {
  return request({
    url: '/agent/applyAgentLevel',
    data,
    method: 'post'
  })
}

export {
  getAddPayment,
  getPayInfos,
  getUpLoad,
  getLevelUpFee,
  getUserLevelGain,
  gwtSendSMS,
  getApplyAgentLevel
}